package com.unknowpupil.web.domain;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.unknowpupil.web.base.AbstractBaseDomain;
import lombok.Data;

@Data
@Table(name = "coin_account")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Account extends AbstractBaseDomain implements Serializable {

    /**
     * 用户名：手机号就是用户名不需要电话,唯一
     */
    @Column(name = "user_name")
    private String userName;

    /**
     * 密码
     */
    @Column(name = "`password`")
    private String password;

    /**
     * 盐
     */
    @Column(name = "salt")
    private String salt;

    /**
     * 头像
     */
    @Column(name = "icon")
    private String icon;

    /**
     * 昵称
     */
    @Column(name = "nick_name")
    private String nickName;

    /**
     * 邮箱
     */
    @Column(name = "email")
    private String email;

    /**
     * 邀请码
     */
    @Column(name = "invitation_code")
    private String invitationCode;

    private static final long serialVersionUID = 1L;
}
